export default defineAppConfig({
    // 数组第一个就是初始页面
    pages: [
        'pages/Index/Index',
        'pages/Category/Category',
        'pages/ShoppingCart/ShoppingCart',
        'pages/User/User',
    ],
    subPackages: [
        {
            root: 'subPages', // 子包目录
            pages: [
                'ConfirmOrder/ConfirmOrder', // 确认订单页面
                'OrderComplete/OrderComplete', // 订单完成页面
                'MyPromotion/MyPromotion', // 我的推广
                'MyWallet/MyWallet', // 我的钱包
                'GoodsDetail/GoodsDetail', // 商品详情页面
                'MyDesign/MyDesign', // 我的设计页面
                'Design/Design', // 设计器页面
                'AddressManage/AddressManage', // 地址管理
                'NewAddressManage/NewAddressManage', // 新建收货地址
                'MyCollection/MyCollection', // 我的收藏
                'MyImage/MyImage', // 我的图库
                'MyCoupons/MyCoupons', // 优惠券
                'AboutUs/AboutUs', // 关于我们
                'CustomerService/CustomerService', // 客服热线
                'MyOrder/MyOrder', // 我的订单
                'MyOrderDetail/MyOrderDetail', // 订单详情页面
                'Clause/Clause', // 条款
                'Withdrawal/Withdrawal', // 提现页面
                // 'MyWithdrawal/Withdrawal',// 提现页面
                'AcceptInvitation/AcceptInvitation', // 接受邀请
                'UserInfo/UserInfo', // 用户信息
                'PromoteRelationships/PromoteRelationships', // 推广关系
                'MyIncome/MyIncome', // 我的收益
                'Suggestion/Suggestion', // 意见反馈
                'DevTool/DevTool', // 调试工具页面
                'PrivacyPolicy/PrivacyPolicy', // 隐私协议
                "IssueCoupon/IssueCoupon", // 发布优惠券页面
            ]
        }
    ],
    tabBar: {
        // 启用自定义tabBar
        custom: true,
        list: [
            {
                text: '首页',
                pagePath: 'pages/Index/Index',
                iconPath: './components/CustomTabBar/img/index.png',
                selectedIconPath: './components/CustomTabBar/img/index_hover.png'
            },
            {
                text: '分类',
                pagePath: 'pages/Category/Category',
                iconPath: './components/CustomTabBar/img/category.png',
                selectedIconPath: './components/CustomTabBar/img/category_hover.png'
            },
            {
                text: '购物车',
                pagePath: 'pages/ShoppingCart/ShoppingCart',
                iconPath: './components/CustomTabBar/img/shoppingCart.png',
                selectedIconPath: './components/CustomTabBar/img/shoppingCart_hover.png'
            },
            {
                text: '我的',
                pagePath: 'pages/User/User',
                iconPath: './components/CustomTabBar/img/user.png',
                selectedIconPath: './components/CustomTabBar/img/user_hover.png'
            }
        ],
    },
    requiredPrivateInfos: [
        "chooseAddress"
    ],
    window: {
        backgroundTextStyle: 'light',
        navigationBarBackgroundColor: '#F2F2F2',
        navigationBarTitleText: 'UT',
        navigationBarTextStyle: 'black',
    },
    lazyCodeLoading: "requiredComponents",
    usingComponents: {}
})